package com.eian.boot.rabbit.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.DefaultValue;

@ConfigurationProperties(prefix = "spring.rabbitmq.custom")
public record RabbitPropertiesExt(
        @DefaultValue("false") boolean returns,
        String confirmType,
        @DefaultValue Retry retry
) {
    public record Retry(
            @DefaultValue("3") int maxAttempts,
            @DefaultValue("1000") long backoffMs
    ) {
    }
}